STEP 11: We'll use the color of the shape that the ball hit to determine what happens next!
- In the collision event, find ····if·my_var·==·"red":¬ . If the color is red, the ball has hit the paddle!
- Delete this line ········sprite.say("Ouch!")¬ from within the first if-statement.
- Add Set y Speed indented twice inside the if-statement and change the argument to -ball_y_speed.
Now if the ball hits the paddle, we are reversing the ball's y speed so it moves back towards the top of the stage!
To navigate the page using the TAB key, first press ESC to exit the code editor.